
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>oec留学中心</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="bookmark" href="/favicon.ico"/>
	    <link rel="stylesheet" href="http://m.sui.taobao.org/dist/css//sm.min.css">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
  </head>
  <body>
    <div id="app">
    </div>
    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
    <script type="text/javascript" src='https://res.wx.qq.com/open/js/jweixin-1.0.0.js' charset='utf-8'></script>
    <script type="text/javascript">
    // 关闭SUI的路由
    $.config = {
      router: false
    }
	wx.config({
	  debug: false,
	  contentType: 'application/json;charset=utf-8'
	})
    // 微信配置参数
    $.sign = {
      uid: '',
	  openid: '',
	  sendpay: function(obj){
		console.log('appId:'+obj.appId)
		WeixinJSBridge.invoke('getBrandWCPayRequest', {
          'appId': obj.appId,
          'timeStamp': String(obj.timeStamp),
          'nonceStr': obj.nonceStr,
		  'package': obj.packageValue,
          'signType': obj.signType,
          'paySign': obj.paySign
        }, function (res) {
          if (res.err_msg === 'get_brand_wcpay_request:ok') {
            location.href = 'http://creatgo.com/oec/#!/user/userupgrade-3'
          }
          else {
            $.alert('支付失败')
          }
        })
	  },
	  sendpay2: function(obj){
		console.log('appId:'+obj.appId)
		WeixinJSBridge.invoke('getBrandWCPayRequest', {
          'appId': obj.appId,
          'timeStamp': String(obj.timeStamp),
          'nonceStr': obj.nonceStr,
		  'package': obj.packageValue,
          'signType': obj.signType,
          'paySign': obj.paySign
        }, function (res) {
          if (res.err_msg === 'get_brand_wcpay_request:ok') {
            location.href = 'http://creatgo.com/oec/#!/travel'
          }
          else {
            $.alert('支付失败')
          }
        })
	  }
    }
	$.user = {
	  uid: '',
	  openid: '',
	  type: 0,
	  assistid: '',
      phone: '',
      email: '',
      school: '',
      grade: '',
      major: '',
      address: '',
      name: '',
	  img: '',
	  nickname: ''
    }
	$.travel = {
	  name: '',
	  datetime: '',
	  money: '',
	  id: ''
	}
</script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.js' charset='utf-8'></script>
</body>
</html>
